Tcl_MathError

Section: Misc. Reference Manual Pages (TCL)
Updated:
Index Return to Main Contents
 

NAME

Tcl_MathError - Floating point math error trap handler for Tcl.  

SYNOPSIS

#include "tclExtend.h"

int
Tcl_MathError (char *functionName,
               int   errorType);
 

DESCRIPTION

Tcl math error handler, should be called by an application `matherr' routine to determine if an error was caused by Tcl code or by other code in the application. If the error occured in Tcl code, flags will be set so that a standard Tcl interpreter error can be returned.

Paramenters:

o functionName (I) - The name of the function that got the error. From the exception structure supplied to matherr.
o errorType (I) - The type of error that occured. From the exception structure supplied to matherr.

Returns:

TRUE if the error was in Tcl code, in which case the matherr routine calling this function should return non-zero so no error message will be generated. FALSE if the error was not in Tcl code, in which case the matherr routine can handle the error in any manner it choses.


 

Index

NAME
SYNOPSIS
DESCRIPTION

This document was created by man2html, using the manual pages.
Time: 22:46:02 GMT, December 11, 2024